<?php
namespace App\Services;

use App\Traits\ReturnTrait;

class SessionService
{
    use ReturnTrait;

    public function set($key,$data){
        $key=config('common.app_id').'_'.$key;
        return session()->set($key,$data);
    }

    public function get($key){
        $key=config('common.app_id').'_'.$key;
        return session()->get($key);
    }

    public function has($key){
        $key=config('common.app_id').'_'.$key;
        return session()->has($key);
    }
}